var id = getQuery('id')
// console.log(id)
function add() {
    axios.get("/posts/addPosts",{
        params:{
            theme:$('title').value,
            content:$('content').value,
            channelId:id
        }
    }).then(resp =>{
        alert(resp.data)
        if(resp.data == 'ok'){
            window.location.href="posts.html?id="+id
        }
    })

}

function back(){
    window.location.href="posts.html?id="+id
}